import request from '@/utils/request'
// 投诉管理

export function getComplaintList(data) {
  return request({
    url: '/ord/complaint/list',
    method: 'post',
    data
  })
}

// 获取详情
export function getComplaintDetail(params) {
  return request({
    url: '/ord/complaint/detail',
    method: 'post',
    params
  })
}

// 编辑
export function editComplaint(data) {
  return request({
    url: '/ord/complaint/edit',
    method: 'post',
    data
  })
}

// 退回
export function backComplaint(params) {
  return request({
    url: '/ord/complaint/back',
    method: 'post',
    params
  })
}
